package lianxi;

//判断字符串是否对称

import java.util.Scanner;

public class test01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String s = sc.nextLine();

        StringBuilder ss = new StringBuilder(s);
        ss.reverse();
        String s1 = ss.toString();
        if(s.equals(s1)){
            System.out.println("对称!");
        }else{
            System.out.println("不对称！");
        }
    }
}
